package usualclass;

import java.util.Random;

public class MathC {
    public static void main(String[] args) {
        System.out.println(Math.pow(2,3));

        Random ran1 = new Random(25);
        Random ran2 = new Random(25);
        System.out.println("使用种子为25的Random对象生成[0,100)内随机整数序列: ");
        for (int i = 0; i < 10; i++) {
            System.out.print(ran1.nextInt(100) + " ");
        }
        System.out.println();
        for (int i = 0; i < 10; i++) {
            System.out.print(ran2.nextInt(100) + " ");
        }

        System.out.println();
    }

}
